QGQP_DIC = {'SH':1, 'SZ':2 ,'ZX':3, 'CY':4}
QGQP = 'http://stock.finance.qq.com/sstock/view/show.php?t=qgqp&c=search_by_type&p=%d&type=%d'

# 季度
SEASONS = ["03-31","06-30","09-30","12-31"]

# 腾讯概念列表
CONCEPT_LIST = 'http://stockapp.finance.qq.com/mstats/menu_childs.php?id=bd021277'
# 概念下对应的股票列表
STKS_WITH_CONCEPT = 'http://stock.gtimg.cn/data/index.php?appn=rank&t=pt%s/chr&p=1&o=0&l=1000&v=list_data'


# 行业排序
# http://stock.gtimg.cn/data/view/bdrank.php?&t=01/averatio&p=1&o=0&l=40&v=list_data
# 概念排序
# http://stock.gtimg.cn/data/view/bdrank.php?&t=02/averatio&p=1&o=0&l=40&v=list_data
# 地域排序
# http://stock.gtimg.cn/data/view/bdrank.php?&t=03/averatio&p=1&o=0&l=40&v=list_data

MODULE_SORT_LIST = 'http://stock.gtimg.cn/data/view/bdrank.php?&t=0%d/averatio&p=1&o=0&l=40&v=list_data'

MODULE_DETAIL_DATA = 'http://qt.gtimg.cn/q=%s&r=225559561'

# 产业列表
INDUSTRY_LIST = 'http://stockapp.finance.qq.com/mstats/menu_childs.php?id=bd012057'
# 产业下对应的股票列表(pt012006)
STKS_WITH_TC_INDUSTRY = 'http://stock.gtimg.cn/data/index.php?appn=rank&t=pt%s/chr&p=1&o=0&l=1000&v=list_data'
# 腾讯技术选股
TECH_GET_STKS = 'http://stock.gtimg.cn/data/view/dataPro.php?t=1&p=5'
# 资金预览 http://stock.gtimg.cn/data/view/flow.php?t=1
MONEY_FLOW_MARKET_BROWSER = 'http://stock.gtimg.cn/data/view/flow.php?t=1'

MONEY_FLOW_INDUSTRY = "http://stock.gtimg.cn/data/view/flow.php?t=2"

MONEY_FLOW_CONCEPT = 'http://stock.gtimg.cn/data/view/flow.php?t=5'

MONEY_FLOW_STOCK = 'http://stock.gtimg.cn/data/view/zldx.php?t=%d'

MONEY_FLOW_ZL_OPPOSITE_TREND = 'http://stock.gtimg.cn/data/view/flow.php?t=%d&d=1'

BLOCK_TRADE_TIME_LIMIT = 'http://stock.finance.qq.com/sstock/list/view/dzjy.php?b=%s&e=%s&p=%d&o=0&c=%s'

BLOCK_TRADE = 'http://stock.finance.qq.com/sstock/list/view/dzjy.php?b=00000000&p=%d&c=%s'

# 基金持股大全:
FUND_INDUSTRY_KEEP = ''

# 基金增/减持行业大全:
FUND_INDUSTRY_KEEP = 'http://web.ifzq.gtimg.cn/fund/hyconf/hyconf/hypm?type=%s&colum=bdsz&order=desc&rd=%s&_var=v_jjph'


# 智能选股主机地址
SMART_FILTER_HOST = 'http://smartstock.gtimg.cn/get.php'
# 活跃股 : 换手率，当日涨幅，当日量比
SMART_ACTIVE_CODE = 'http://smartstock.gtimg.cn/get.php?_func=filter&_page={page}&_pagesize=10000&hs_hsl={hsl}&hs_zf={zf}&hs_lb={lb}&_default=1&_du_r_t=0.9246264624874336'
# 资金股 : 主力增仓，涨幅，量比
SMART_MONEY_CODE = 'http://smartstock.gtimg.cn/get.php?_func=filter&_page={page}&_default=1&_pagesize=1000&hs_zlzc5={zlzc5}&hs_zf3={zf3}&hs_zllb1={zllb1}&_du_r_t=0.883743467138461'
# 研报股 : 当日/5日/30日 研报股
SMART_RESEARCH_CODE = 'http://smartstock.gtimg.cn/get.php?_func=ybg&_page={page}&_pagesize=30&type=hs_yb{yb}&_default=1&_du_r_t=0.5835756684512419'
# 敢死队 : 最近一日龙虎榜，上榜频次达到10%
SMART_DARE_DIE_CODE = 'http://smartstock.gtimg.cn/get.php?_func=lhb&_page={page}&_pagesize=30&hs_lhb={lhb}&_default=1&_du_r_t=0.26006538735291884'

# 曙光初现 1.MACD金叉：DIF与DEA金叉 2.成交量金叉：5日成交量均线与10日成交量均线金叉 3.均线金叉：5日移动均线与10日移动均线金叉
SMART_ZB_SGCX = 'http://smartstock.gtimg.cn/get.php?_func=zhibiao&_default=1&_page={page}&_pagesize=30&zhibiao=hs_sgcx&_du_r_t=0.8666050736378486'
# 空中加油 1.20日和60日均线多头排列 2.凯恩斯多空线金叉（上穿0轴）
SMART_ZB_KZJY = 'http://smartstock.gtimg.cn/get.php?_func=zhibiao&_default=1&_page={page}&_pagesize=30&zhibiao=hs_kzjy&_du_r_t=0.2342141408850362'

SMART_ZB_CJDX = 'http://smartstock.gtimg.cn/get.php?_func=zhibiao&_default=1&_page={page}&_pagesize=30&zhibiao=hs_cjdx&_du_r_t=0.4129151914416227'

SMART_ZB_XSDF = 'http://smartstock.gtimg.cn/get.php?_func=zhibiao&zf60=,{zf60}&_default=0&_page={page}&_pagesize=30&zhibiao=hs_xsdf&_du_r_t=0.11473446407765242'

SMART_ZB_HDLY = 'http://smartstock.gtimg.cn/get.php?_func=zhibiao&gl10=,{gl10}&_default=1&_page={page}&_pagesize=30&zhibiao=hs_hdly&_du_r_t=0.6520789964839544'


